import { axios } from '@/utils/request'

/**
 * 查询账户流水
 *
 * @author wanglei
 * @date 2021-08-25 18:59:05
 */
export function userTracePage (parameter) {
  return axios({
    url: '/userTrace/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 账户流水列表
 *
 * @author wanglei
 * @date 2021-08-25 18:59:05
 */
export function userTraceList (parameter) {
  return axios({
    url: '/userTrace/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加账户流水
 *
 * @author wanglei
 * @date 2021-08-25 18:59:05
 */
export function userTraceAdd (parameter) {
  return axios({
    url: '/userTrace/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑账户流水
 *
 * @author wanglei
 * @date 2021-08-25 18:59:05
 */
export function userTraceEdit (parameter) {
  return axios({
    url: '/userTrace/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除账户流水
 *
 * @author wanglei
 * @date 2021-08-25 18:59:05
 */
export function userTraceDelete (parameter) {
  return axios({
    url: '/userTrace/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出账户流水
 *
 * @author wanglei
 * @date 2021-08-25 18:59:05
 */
export function userTraceExport (parameter) {
  return axios({
    url: '/userTrace/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
